package jmine.tec.database.query.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import jmine.tec.persist.annotation.Alias;
import bancosys.tec.component.Documentation;
import bancosys.tec.persist.bussobj.PersistableBusinessObject;

/**
 * Entidade "folha", não possui associações para outras entidades.
 * 
 * @author lundberg
 */
@Entity
@Table(name = "LEAF_ENTITY")
@Alias("LEAFEN")
@SequenceGenerator(name = "SEQ_LEAFEN", sequenceName = "SEQ_LEAFEN")
@Documentation("LEAF_ENTITY")
public class LeafEntity extends PersistableBusinessObject {

    private Long id;

    /**
     * @return the id
     */
    @Id
    @GeneratedValue(generator = "SEQ_LEAFEN")
    @Column(name = "COD_LEAF")
    @Documentation("COD_LEAF")
    public Long getId() {
        return this.id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
}
